import request from '@/utils/request'


export const bannerProductList = function(params){
  return request({
    url: '/banner_product/list',
    method: 'get',
    params: params,
  })
}

export const bannerProductAdd = function(params){
  return request({
    url: '/banner_product/add',
    method: 'post',
    data: params,
  })
}
export const bannerProductEditGet = function(params){
  return request({
    url: '/banner_product/edit',
    method: 'get',
    params: params,
  })
}

export const bannerProductEditPost = function(params){
  return request({
    url: '/banner_product/edit',
    method: 'post',
    data: params,
  })
}
export const bannerProductDel = function(params){
  return request({
    url: '/banner_product/del',
    method: 'post',
    data: params,
  })
}

export const sort = function(params){
  return request({
    url: '/banner_product/sort',
    method: 'post',
    data: params,
  })
}